<%@page import="java.util.List"%>
<%@page import="sdfi.lee.DAO.PlatDAO"%>
<%@page import="sdfi.lee.Entity.Platform"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="../css/index.css" rel="stylesheet" type="text/css">
<link href="../css/level.css" rel="stylesheet" type="text/css">
</head>
<body>
<%

	String platid=request.getParameter("platid");
	String pg=request.getParameter("pg");
	PlatDAO platdao=new PlatDAO();
	Platform pf=platdao.getPlatbyId(Integer.valueOf(platid));
	List<Platform> list=platdao.getPlatform(5,Integer.valueOf(pg).intValue()+1);
	request.setAttribute("pf",pf);
	request.setAttribute("list",list);
%>
<div class="divhead">当前位置：<a href="<c:url value='/index.jsp'/>">首页</a>
&gt;&nbsp;&nbsp;<a href="<c:url value='/platform/platlist.jsp?pg=1' />">单元平台</a>
</div>
<div id="divshowcontain">
	<div id="divleft">
    	<div class="div_content_title">
    		${requestScope.pf.platname }
        </div>
        <div class="div_content_fenge2">
        </div>
        <div class="div_detail">
        	${requestScope.pf.platdescribe}
        </div>
        <div style="clear:left"></div>
    </div>
    <div id="divmid">
    </div>
    <div id="divright">
    	<c:forEach items="${requestScope.list }" var="pf">
    		<div class="newsitem">
    			<div class="newstitle">
    				<a href="<c:url value='/platform/platdetail.jsp?pg=${param.pg+1}&platid=${pf.id}' />" >${pf.platname}</a>
    			</div>
                <div class="newsdate">&nbsp;</div>
    		</div>
    	</c:forEach>
    </div>
    <div style="clear:left"></div>
</div>
</body>
</html>